package com.yxb.config;


import cn.jiguang.common.ClientConfig;
import cn.jpush.api.JPushClient;
import com.yxb.thirdsdk.push.JpushService;
import com.yxb.thirdsdk.push.PushConstant;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class JpushConfig {


    @Bean
    public JPushClient jpushClient(){
        JPushClient jpushClient =new JPushClient(PushConstant.PUSH_MASTER_SECRET, PushConstant.PUSH_APP_KEY,
                null,ClientConfig.getInstance()) ;
        return jpushClient;
    }

    @Bean
    public JpushService  jpushService(){
        return new JpushService();
    }

}
